<?php
include("inc/auth.inc.php");
include("inc/header.inc.php");
include("inc/db.inc.php");
include("inc/config.inc.php");
?>
<a href="menu.php">zur&uuml;ck</a>
	<h3>Guthaben</h3><br />
	<?
	$result = mysql_query("SELECT * FROM guthaben_view");
	if (!$result) {
    	die('Ungültige Abfrage: ' . mysql_error());
	}
	$guthaben=array();?>
	<table>
	<tr>
		<th>
			Name
		</th>
		<th>
			Guthaben
		</th>
	</tr>
	<?while($row=mysql_fetch_array($result)){?>
		<tr>
			<td>
				<? echo $row["login"]?>
			</td>
			<td style="text-align:right;">
				<? echo number_format(round($row["guthaben"],2),2)?>&euro;
			</td>
		<tr>
	<?}?>
	</table>
<?php
include("inc/footer.inc.php");
?>